package com.myproject.database;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class Time extends SQLiteOpenHelper{

	public static final String TABLE_NAME = "times";
	public static final String ID = "_id";
	public static final String TASKTIME = "tasktime";

	public Time(Context context) {
		super(context, "times", null, 1);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL("CREATE TABLE " + TABLE_NAME + " (" + ID
				+ " INTEGER PRIMARY KEY AUTOINCREMENT,"  + TASKTIME + " TEXT NOT NULL )");
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

	}

}
